home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / ver_cont / cvs-1.8 / cvs-1 / cvs-1.8.1 / doc / Makefile.in < prev   
Encoding:
Makefile  |  1996-05-06  |  5.4 KB  |  204 lines

  1. # Makefile for GNU CVS documentation.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1986, 1988-1990 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. # $CVSid: @(#)Makefile.in 1.8 94/10/22 $
  20.  
  21. SHELL = /bin/sh
  22.  
  23. srcdir = @srcdir@
  24. top_srcdir = @top_srcdir@
  25. VPATH = @srcdir@
  26.  
  27. prefix = @prefix@
  28. exec_prefix = @exec_prefix@
  29.  
  30. infodir = $(prefix)/info
  31.  
  32. INSTALL    = @INSTALL@
  33. INSTALL_DATA = @INSTALL_DATA@
  34.  
  35. DISTFILES = \
  36.     .cvsignore ChangeLog ChangeLog.fsf Makefile.in \
  37.     cvs-paper.ms cvs-paper.ps \
  38.     cvs.texinfo \
  39.     cvsclient.texi
  40.  
  41. OBJDIR_DISTFILES = cvs.ps cvs.info cvs.aux \
  42.     cvsclient.ps cvsclient.info cvsclient.aux CVSvn.texi
  43.  
  44. # these are part of the texinfo distribution
  45. MAKEINFO=makeinfo
  46. TEXI2DVI = texi2dvi
  47.  
  48. # where to find texinfo;
  49. TEXIDIR=${gdbdir}/../texinfo
  50.  
  51. SET_TEXINPUTS = TEXINPUTS=.:$(srcdir):$$TEXINPUTS
  52.  
  53. # Don Knuth's TeX formatter
  54. TEX = tex
  55.  
  56. # auxiliary program for sorting Texinfo indices
  57. TEXINDEX = texindex
  58.  
  59. DVIPS = dvips
  60. DVIPSFLAGS = 
  61.  
  62. ROFF = groff
  63.  
  64. # CYGNUS LOCAL: all does not depend upon info
  65. all:
  66. .PHONY: all
  67.  
  68. # CYGNUS LOCAL: install does not depend on install-info
  69. install: all
  70. .PHONY: install
  71.  
  72. doc: cvs.ps cvs-paper.ps cvsclient.ps
  73.  
  74. info: cvs.info cvsclient.info
  75.  
  76. cvs.info: cvs.texinfo CVSvn.texi
  77.     if [ ! -f ./CVSvn.texi ]; then \
  78.         ln -s $(srcdir)/CVSvn.texi . || \
  79.         ln $(srcdir)/CVSvn.texi . || \
  80.         cp $(srcdir)/CVSvn.texi . ; else true; fi
  81.     $(MAKEINFO) $(srcdir)/cvs.texinfo -o cvs.info
  82.  
  83. cvsclient.info: cvsclient.texi CVSvn.texi
  84.     if [ ! -f ./CVSvn.texi ]; then \
  85.         ln -s $(srcdir)/CVSvn.texi . || \
  86.         ln $(srcdir)/CVSvn.texi . || \
  87.         cp $(srcdir)/CVSvn.texi . ; else true; fi
  88.     $(MAKEINFO) $(srcdir)/cvsclient.texi -o cvsclient.info
  89.  
  90. # Version of the protocol suitable for emailing
  91. cvsclient.txt: cvsclient.texi CVSvn.texi
  92.     if [ ! -f ./CVSvn.texi ]; then \
  93.         ln -s $(srcdir)/CVSvn.texi . || \
  94.         ln $(srcdir)/CVSvn.texi . || \
  95.         cp $(srcdir)/CVSvn.texi . ; else true; fi
  96.     $(MAKEINFO) $(srcdir)/cvsclient.texi --no-headers -o cvsclient.txt
  97.  
  98. # If the user gets a distribution (which contains *.info), unpacks
  99. # it, and builds it in a seperate build dir, then *.info* are in srcdir.
  100. # If the user builds *.info (e.g. after editing *.texi), then *.info* are
  101. # in the build dir.
  102. install-info: info
  103.     test -f cvs.info || cd $(srcdir); \
  104.     for i in *.info* ; do \
  105.       $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  106.     done
  107.  
  108. installdirs: 
  109.     $(SHELL) $(top_srcdir)/mkinstalldirs $(infodir)
  110. .PHONY: installdirs
  111.  
  112. dvi: cvs.dvi cvsclient.dvi
  113.  
  114. CVSvn.texi: $(top_srcdir)/src/version.c
  115.     echo "@set CVSVN `sed < $(top_srcdir)/src/version.c \
  116.             -e '/version_string/!d' \
  117.             -e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
  118.             -e q`" >CVSvn.new
  119.     mv CVSvn.new CVSvn.texi
  120.  
  121. cvs.dvi cvs.aux: cvs.texinfo CVSvn.texi
  122.     if [ ! -f ./CVSvn.texi ]; then \
  123.         ln -s $(srcdir)/CVSvn.texi . || \
  124.         ln $(srcdir)/CVSvn.texi . || \
  125.         cp $(srcdir)/CVSvn.texi . ; else true; fi
  126.     $(TEXI2DVI) $(srcdir)/cvs.texinfo
  127.  
  128. cvsclient.dvi cvsclient.aux: cvsclient.texi CVSvn.texi
  129.     if [ ! -f ./CVSvn.texi ]; then \
  130.         ln -s $(srcdir)/CVSvn.texi . || \
  131.         ln $(srcdir)/CVSvn.texi . || \
  132.         cp $(srcdir)/CVSvn.texi . ; else true; fi
  133.     $(SET_TEXINPUTS) $(TEX) cvsclient.texi
  134.     $(SET_TEXINPUTS) $(TEX) cvsclient.texi
  135.     $(TEXINDEX) cvsclient.??
  136.     $(SET_TEXINPUTS) $(TEX) cvsclient.texi
  137.     rm -f cvsclient.?? cvsclient.log cvsclient.toc cvsclient.??s
  138.  
  139. cvs.ps: cvs.dvi
  140.     $(DVIPS) $(DVIPSFLAGS) cvs.dvi -o cvs.ps
  141.  
  142. cvs-paper.ps: cvs-paper.ms
  143.     $(ROFF) -t -p -ms -Tps $(srcdir)/cvs-paper.ms > $@-t
  144.     mv $@-t $@
  145.  
  146. cvsclient.ps: cvsclient.dvi
  147.     $(DVIPS) $(DVIPSFLAGS) cvsclient.dvi -o cvsclient.ps
  148.  
  149. tags:
  150. .PHONY: tags
  151.  
  152. TAGS:
  153. .PHONY: TAGS
  154.  
  155. ls:
  156.     @echo $(DISTFILES)
  157. .PHONY: ls
  158.  
  159. clean:
  160.     rm -f *.o core
  161.     rm -f cvs.cp cvs.fn cvs.ky cvs.pg cvs.tp cvs.vr
  162.     rm -f cvs.cps cvs.fns cvs.kys cvs.pgs cvs.tps cvs.vrs
  163.     rm -f cvs.aux cvs.dvi cvs.log cvs.toc
  164.     rm -f cvsclient.cp cvsclient.fn cvsclient.ky cvsclient.pg
  165.     rm -f cvsclient.tp cvsclient.vr cvsclient.cps cvsclient.fns
  166.     rm -f cvsclient.kys cvsclient.pgs cvsclient.tps cvsclient.vrs
  167.     rm -f cvsclient.aux cvsclient.dvi cvsclient.log cvsclient.toc
  168.  
  169. .PHONY: clean
  170.  
  171. distclean: clean
  172.     rm -f Makefile
  173. .PHONY: distclean
  174.  
  175. realclean: distclean
  176.     rm -f cvs.info* cvs.ps cvs-paper.ps cvsclient.info* cvsclient.ps
  177. .PHONY: realclean
  178.  
  179. dist-dir: $(DISTFILES) $(OBJDIR_DISTFILES)
  180.     mkdir ${DISTDIR}
  181.     for i in ${DISTFILES}; do \
  182.       ln $(srcdir)/$${i} ${DISTDIR}; \
  183.     done
  184.     ln ${OBJDIR_DISTFILES} ${DISTDIR}
  185.     if [ -f cvs.info-1 ]; \
  186.       then ln -f cvs.info-* ${DISTDIR}; \
  187.       else : Pacify Ultrix sh; \
  188.     fi
  189.     if [ -f cvsclient.info-1 ]; \
  190.       then ln -f cvsclient.info-* ${DISTDIR}; \
  191.       else : Pacify Ultrix sh; \
  192.     fi
  193. .PHONY: dist-dir
  194.  
  195. subdir = doc
  196. Makefile: ../config.status Makefile.in
  197.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  198.  
  199. #../config.status: ../configure
  200. #    cd .. ; $(SHELL) config.status --recheck
  201.  
  202. #../configure: ../configure.in
  203. #    cd $(top_srcdir) ; autoconf
  204.